<include file="Public:header" />
<div class="headbar clearfix">
    <div class="position"><span>配置</span><span>></span><span>微信管理</span></div>
</div>

<div class="content_box">
    <div class="content form_content">
        <form action="{:U('Set/config_act')}" name="configForm" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$data.id}" />

            <div id="table_box_1">
                <table class="form_table">
                    <col width="150px" />
                    <col />
                    <tr>
                        <th>名称：</th>
                        <td>
                            <input class="normal" name="pub_name" type="text" value="{$data.pub_name}" pattern="required" /><label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>原始ID：</th>
                        <td>
                            <input class="normal" name="source_id" type="text" value="{$data.source_id}" pattern="required" /><label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>微信号：</th>
                        <td>
                            <input class="normal" name="pub_account" type="text" value="{$data.pub_account}" pattern="required" /><label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>AppId：</th>
                        <td>
                            <input class="normal" name="app_id" type="text" value="{$data.app_id}" pattern="required" /><label>* 微信公众号身份的唯一标识</label>
                        </td>
                    </tr>
                    <tr>
                        <th>Secret：</th>
                        <td>
                            <input class="normal" name="app_secret" type="password" value="{$data.app_secret}" pattern="required" /><label>* 审核后在公众平台开启开发模式后可查看</label>
                        </td>
                    </tr>
                    <tr>
                        <th>MCHID：</th>
                        <td>
                            <input class="normal" name="wx_pay_mchid" type="text" value="{$data.wx_pay_mchid}" pattern="required" /><label>* 微信支付商户号，审核通过后，在微信发送的邮件中查看。</label>
                        </td>
                    </tr>
                    <tr>
                        <th>KEY：</th>
                        <td>
                            <input class="normal" name="wx_pay_key" type="password" value="{$data.wx_pay_key}" pattern="required" /><label>* 商户支付密钥Key。请登录微信支付商户平台，在【账户设置-安全设置-API安全】中设置。</label>
                        </td>
                    </tr>
                    <tr>
                        <th>PAYSIGNKEY：</th>
                        <td>
                            <input class="normal" name="wx_paysignkey" type="text" value="{$data.wx_paysignkey}" /><label> 财付通商户支付专用签名串PaySignKey。审核通过后，在微信发送的邮件中查看（财付通用户必填）</label>
                        </td>
                    </tr>
                    <tr>
                        <th>apiclient_cert：</th>
                        <td>
                            {$data.apiclient_cert}
                            <input class="middle" type="file" name="apiclient_cert" />
                            <label> * 证书pem格式（apiclient_cert.pem）</label>
                        </td>
                    </tr>
                    <tr>
                        <th>apiclient_key：</th>
                        <td>
                            {$data.apiclient_key}
                            <input class="middle" type="file" name="apiclient_key" />
                            <label> * 证书密钥pem格式（apiclient_key.pem）</label>
                        </td>
                    </tr>
                    <tr>
                        <th>rootca：</th>
                        <td>
                            {$data.rootca}
                            <input class="middle" type="file" name="rootca" />
                            <label> * CA证书（rootca.pem）</label>
                        </td>
                    </tr>
                </table>
            </div>

            <table class="form_table">
                <col width="150px" />
                <col />
                <tr>
                    <td></td>
                    <td><button class="submit" type="submit" ><span>确认</span></button></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<include file="Public:footer" />